#include<iostream>
using namespace std;
void Print(int n)
{
	for (int i = 31; i >= 0; i--)
	{
		cout << ((n & (1 << i)) == 0 ? "0" : "1");
	}
}
void Print(unsigned int n)
{
	for (int i = 31; i >= 0; i--)
	{
		cout << ((n & (1 << i)) == 0 ? "0" : "1");
	}
}
int main()
{
	int m = INT_MAX;
	unsigned int z = INT_MAX;
	Print(m);
	cout << endl;
	Print(z);
	cout << endl;
	Print(-1);
	return 0;
}